// // 通用组件自动化全局注册
import Vue from 'vue'

const componentContext = require.context('./common', true, /\.vue$/)

componentContext.keys().forEach(fileName => {
  const componentConfig = componentContext(fileName)
  const ctrl = componentConfig.default || componentConfig
  Vue.component(ctrl.name, ctrl)
})
